package com.xueyi.system.diseasesLibrary.service.impl;

import com.xueyi.system.diseasesLibrary.domain.query.DiseasesLibraryQuery;
import com.xueyi.system.diseasesLibrary.domain.dto.DiseasesLibraryDto;
import com.xueyi.system.diseasesLibrary.service.IDiseasesLibraryService;
import com.xueyi.system.diseasesLibrary.manager.IDiseasesLibraryManager;
import com.xueyi.common.web.entity.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 病虫害库管理 服务层处理
 *
 * @author zlf
 */
@Service
public class DiseasesLibraryServiceImpl extends BaseServiceImpl<DiseasesLibraryQuery, DiseasesLibraryDto, IDiseasesLibraryManager> implements IDiseasesLibraryService {

    /**
     * 查询病虫害库对象列表 | 数据权限 | 附加数据
     *
     * @param diseasesLibrary 病虫害库对象
     * @return 病虫害库对象集合
     */
    @Override
    //@DataScope(userAlias = "createBy", mapperScope = {"DiseasesLibraryMapper"})
    public List<DiseasesLibraryDto> selectListScope(DiseasesLibraryQuery diseasesLibrary) {
        return baseManager.selectListExtra(diseasesLibrary);
    }

}